<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- 引入ElementUI样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <script src="https://unpkg.com/vue/dist/vue.js"></script>
    <!-- 引入ElementUI组件库 -->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
</head>
<body>
<div id="app">
    <!--<span class="demonstration">完整功能</span>-->
    <el-pagination
            @size-change="handleSizeChange"
            @current-change="handleCurrentChange"
            :current-page="currentPage4"
            :page-sizes="pageSizes"
            :page-size="size"
            layout="total, sizes, prev, pager, next, jumper"
            :total="total">
    </el-pagination>
</div>
    <script>
        var app=new Vue({
            el:'#app',
            data : {
                currentPage4:1,
                pageSizes :[10, 20, 30, 40],
                size:10,
                total:1000
            },
            methods : {
                handleSizeChange(pageSizes) {
                    console.log('每页'+pageSizes+'条');
                },
                handleCurrentChange(currentPage4) {
                    console.log('当前页:'+currentPage4);
                }
            }

        });
    </script>
</body>
</html>